package rules.bookinfo;

import java.util.Set;

import rules.Rule;
import rules.RulesValidator;
import books.BookInfo;

/**
 */
public class BookInfoValidator extends RulesValidator<BookInfo> {

    @Override
    protected void addRules(final Set<Rule<BookInfo>> rules) {
        rules.add(new BookInfoNotNullFieldsRule());
        rules.add(new BookInfoIsbnRule());
    }
}
